package com.rzj.sys_lab_assistant.dao;

import com.rzj.sys_lab_assistant.entity.RecruitmentPost;
import com.rzj.sys_lab_assistant.entity.bo.RecruitmentPostBO;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

/**
 * @program: sys_lab_assistant
 * @description:
 * @author: 作者
 * @create: 2021-06-30 20:52
 */
@Mapper
public interface RecruitmentPostMapper {

    List<RecruitmentPostBO> listRecruitmentPostsByAccount(String account); // 根据技术员编号获取对应的岗位列表

    List<RecruitmentPostBO> listRecruitmentPosts();

    RecruitmentPostBO getRecruitmentPostById(int postId);

    int countRecruitmentPosts(int postId); // 验证报名人数是否满人

    int saveRecruitmentPost(RecruitmentPost recruitmentPost);

    int updateRecruitmentPost(RecruitmentPost recruitmentPost);

    int deleteRecruitmentPost(int postId);

}
